# Copyright (C) 2010 Razvan Constantin <razvan.constantin@rconst.net>
#
# This file is part of FileBow.
#
# FileBow is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# FileBow is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with FileBow.  If not, see <http:#www.gnu.org/licenses/>.


# Build script for Geany File Navigator logic.

def configure(conf):
  pass

def build(bld):
  bld.library('logic')

  bld.build_target(
    name = 'file_filter',
    deps = ('common#common', 'path-tree', ),
    test = True)
  bld.build_target(
    name = 'file-scorer',
    deps = ('common#common', 'common#strings', 'path-tree', ),
    test = True)
  bld.build_target(
    name = 'history',
    deps = ('file-scorer', 'common#common', 'common#strings', 'path-tree',
            'utils#npath', ),
    test = True)
  bld.build_target(
    name = 'navigator',
    deps = ('common#common', 'common#strings', 'history', 'file-scorer',
            'path-tree', 'file_filter', 'top_builder', 'path-scanner',
            'utils#npath', ),
    test = True)
  bld.build_target(
    name = 'path-scanner',
    deps = ('common#common', 'common#strings', 'path-tree', ),
    libs = ('GTK', 'POCO',),
    test = True)
  bld.build_target(
    name = 'path-tree',
    deps = ('common#common', 'common#strings'),
    test = True)
  bld.build_target(
    name = 'top_builder',
    deps = ('common#common', 'file_filter', 'file-scorer', 'path-tree', ),
    test = True)
